﻿using System;
using System.Windows.Forms;

namespace Gestión_UTN.View.util
{
    public partial class Progreso : Form
    {
        public Progreso()
        {
            InitializeComponent();
        }

        private int inicio;

        public int Inicio
        {
            get { return inicio; }
            set { inicio = value; }
        }

        private int final;

        public int Final
        {
            get { return final; }
            set { final = value; }
        }

        private void Progreso_Load(object sender, EventArgs e)
        {
            this.prgbar.Minimum = inicio;

            this.prgbar.Maximum = final;
        }

        public void arrancar()
        {
            for (int i = inicio; i < final; i++)
            {
                this.prgbar.PerformStep();
            }

            this.Close();

            this.Dispose();
        }





    }
}
